package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.bean.ResponseData;
import com.isoft.c2team3service2.dto.ArtistRegisterDTO;
import com.isoft.c2team3service2.entity.User;
import com.isoft.c2team3service2.entity.UserDTO;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.Map;

public interface  UserService  extends IService<User> {
    String repeatEmail(String email);
    ResponseData<UserDTO> login(String email, String password, HttpServletResponse response ) throws UnsupportedEncodingException, NoSuchAlgorithmException;
    boolean updatePassword(@Param("id") String email, @Param("password") String password) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    String upLode(String email);

    String upload(MultipartFile file);
    // 新增：艺人注册方法
    Map<String, Object> artistRegister(ArtistRegisterDTO dto) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    String upLodeId(Integer userId);

    Map<String, Object> register(String email, String code, String password, Integer roleId);

    String findBackgroundByEmail(String email);
}